<?php

namespace App\Http\Repository;

use App\Repository\BaseRepository;
use Illuminate\Database\Eloquent\Model;

class UserRepository extends BaseRepository
{


    function model()
    {
        return "App\\Http\\Model\\User";
    }

    public function validator()
    {
        return "App\\Http\\Validator\\UserValidator";
    }

    public function transform(Model $model){}

//    public function setModelConnection($mobile)
//    {
//        $number = intval(substr($mobile, 7, 4));
//        $conn = $number % 8 + 1;
//
//        $this->model->setConnection('db_' . $conn);
//        $this->model->setTable('users_' . getTableId($mobile));
//    }

}
